package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-07-03 10:41
 * Description: 评价管理列表VO
 */
@Data
public class CommodityEvaluationManageVO implements Serializable {

    @ApiModelProperty(value = "评价表id")
    private Long id;
    @ApiModelProperty(value = "卖家店铺id")
    private Long sellerShopId;
    @ApiModelProperty(value = "卖家店铺名称")
    private String sellerShopName;
    @ApiModelProperty(value = "买家店铺id")
    private Long buyersShopId;
    @ApiModelProperty(value = "买家店铺名称")
    private String buyersShopName;
    @ApiModelProperty(value = "图片地址 多个以逗号隔开")
    private String imgUrls;
    @ApiModelProperty(value = "视频地址 多个以逗号隔开")
    private String videoUrls;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "内容类型 0文字，1图文，2视频")
    private Integer contentType;
    @ApiModelProperty(value = "星级")
    private Integer starLevel;
    @ApiModelProperty(value = "综合评价 0好评，1差评")
    private Integer compositeEvaluation;
    @ApiModelProperty(value = "订单创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "评价时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date evaluationTime;
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    @ApiModelProperty(value = "商品金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal actualMoney;
    @ApiModelProperty(value = "商品编号")
    private String commodityNumber;
    @ApiModelProperty(value = "商品图片")
    private String goodsImage;
    @ApiModelProperty(value = "商品id")
    private Long goodsId;
    @ApiModelProperty(value = "状态 0正常、1删除")
    private Integer deleteState;
    @ApiModelProperty(value = "订单商品表id")
    private Long goodsItemId;
    @ApiModelProperty(value = "下级评价")
    private List<CommodityEvaluationPageVO> underList;
}
